package com.opencloud.ywt.client.api;

        import com.opencloud.ywt.client.model.entity.BhyfBflAngle;
        import com.opencloud.ywt.client.model.entity.BhyfBflAngleBeacon;
        import com.opencloud.ywt.client.model.entity.BhyfStudent;
        import org.springframework.web.bind.annotation.*;
        import java.util.List;

/**
 * @author liuyadu
 */
public interface YwtRemoteApi {

    /**
     * 获取IOT项目的服务接口
     * @param gid
     * @param classid
     * @return
     */
    @RequestMapping(value="/ywt/studentlist",method= RequestMethod.GET)
    List<BhyfStudent> getBhyfStudentList(
            @RequestParam(value = "gid",required = false) final Integer gid,
            @RequestParam(value = "classid",required = false) final Integer classid
    );

    @RequestMapping(value="/ywt/anglelist",method= RequestMethod.GET)
    List<BhyfBflAngle> getBhyfAngleList(
            @RequestParam(value = "gid",required = false) final Integer gid,
            @RequestParam(value = "classid",required = false) final Integer classid
    );

    @RequestMapping(value="/ywt/anglebeaconlist",method= RequestMethod.GET)
    List<BhyfBflAngleBeacon> getBhyfAngleBeaconList(
            @RequestParam(value = "angleid",required = false) final Integer angleid
    );

    @RequestMapping(value="/ywt/anglebybeacon",method= RequestMethod.GET)
    List<BhyfBflAngle> getAngleByBeacon(
            @RequestParam(value = "beacon",required = false) final String beacon
    );


}

